import OFS.SimpleItem
import Acquisition
import AccessControl.Role
from Globals import Persistent   
from OFS.Folder import Folder
from Globals import HTMLFile
from Globals import DTMLFile

def manage_addMsqlView(self, id='MsqlView', title='MsqlView', REQUEST=None):
    """ """
    if 'MsqlView' in self.aq_parent.objectIds():
        return 'A MsqlView instance is already installed at this location!'
    self._setObject(id,
                    MsqlView(id, title))
    if REQUEST is not None:
        return self.manage_main(self, REQUEST)

class MsqlView(OFS.SimpleItem.Item,
               Persistent,
               Folder,
               Acquisition.Implicit,
               AccessControl.Role.RoleManager):
    """ """
    meta_type = " MsqlView "    

    def __init__(self, id, title, **kw):
        """ """
        self.id = id
        self.title = title

    def manage_afterAdd(self, container=None, context=None):
        """ """
        
    def manage_workspace(self, container=None, context=None):
        """ """    
